package com.example.springstack.springsecurity.entity;

import lombok.Data;

import java.io.Serializable;

/**
 * @author Qiangfanghao
 */
@Data
public class AuthenticationInfoVo implements Serializable {

    /**
     * header token的请求头key 配置文件中取
     */
    private String header;

    /**
     * 返回token
     */
    private String token;

    /**
     * token过期时间
     */
    private Long tokenExpire;

    /**
     * 刷新token过期时间
     */
    private Long refreshTokenExpire;

    public AuthenticationInfoVo() {
    }

    public AuthenticationInfoVo(String token, Long tokenExpire, Long refreshTokenExpire) {
        this.token = token;
        this.tokenExpire = tokenExpire;
        this.refreshTokenExpire = refreshTokenExpire;
    }

    public AuthenticationInfoVo(String header, String token, Long tokenExpire, Long refreshTokenExpire) {
        this.header = header;
        this.token = token;
        this.tokenExpire = tokenExpire;
        this.refreshTokenExpire = refreshTokenExpire;
    }

}
